{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "丁香园爬取 先完成第三次的课后习题 "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests, json, re, random,time\n",
    "from bs4 import BeautifulSoup\n",
    "from selenium import webdriver\n",
    "from lxml import etree"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "class getUrl(object):\n",
    "    def __init__(self):\n",
    "        self.headers={\n",
    "            \"Connection\": \"keep-alive\",\n",
    "            #伪装成浏览器\n",
    "            \"User-Agent\": \"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 \"  \n",
    "                          \"(KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36\",\n",
    "            #用于指定客户端可接受哪些类型的信息\n",
    "            \"Accept\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\n",
    "            #指定客户端可以接受的内容编码\n",
    "            \"Accept-Encoding\": \"gzip, deflate, sdch\",\n",
    "            \"Accept-Language\": \"zh-CN,zh;q=0.8\"           \n",
    "        };\n",
    "    def run(self):\n",
    "        browser = webdriver.Chrome()\n",
    "\t\tbrowser.get('https://auth.dxy.cn/accounts/login?service=http://www.dxy.cn/bbs/index.html')\n",
    "\t\ttime.sleep(1)\n",
    "        #切换账号密码登录表单\n",
    "\t\tjs1 = 'document.querySelector(\"#j_loginTab1\").style.display=\"none\";'\n",
    "\t\tbrowser.execute_script(js1)\n",
    "\t\ttime.sleep(1)\n",
    "\t\tjs2 = 'document.querySelector(\"#j_loginTab2\").style.display=\"block\";'\n",
    "\t\tbrowser.execute_script(js2)\n",
    "        #输入账号和密码\n",
    "        input_name = browser.find_element_by_name('13064820396')\n",
    "\t\tinput_name.clear()\n",
    "\t\tinput_name.send_keys('*')# 这里为自己账号和密码\n",
    "\t\tinput_pass = browser.find_element_by_name('yhz15098437847')\n",
    "\t\tinput_pass.clear()\n",
    "\t\tinput_pass.send_keys('*')\n",
    "\t\tbrowser.find_element_by_xpath('//*[@class=\"form__button\"]/button').click()\n",
    "        #设置cookies 验证码如何操作？？\n",
    "        time.sleep(10)\n",
    "        cookie = browser.get_cookies()\n",
    "\t\tcookie_dict = {i['name']:i['value'] for i in cookie}\n",
    "        #转到抓取页面\n",
    "\t\tbrowser.get(\"http://www.dxy.cn/bbs/thread/626626#626626\");\n",
    "\t\thtml = browser.page_source\n",
    "\t\ttree = etree.HTML(html)\n",
    "        #解析网页 使用xpath div[@a=]div节点中的a属性值 xpath选取的是全部同一类型的节点\n",
    "        user = tree.xpath('//div[@id=\"postcontainer\"]//div[@class=\"auth\"]/a/text()')\n",
    "\t\tcontent = tree.xpath('//td[@class=\"postbody\"]')    \n",
    "        for i in range(0,len(user)):\n",
    "\t\t\tresult = user[i].strip()+\":\"+content[i].xpath('string(.)').strip()\n",
    "\t\t\t#写入文件\n",
    "\t\t\tdir_file = open(\"DXY_records.txt\",'a', encoding=\"utf-8\")\n",
    "\t\t\tdir_file.write(result+\"\\n\")\n",
    "\t\t\tdir_file.write('*' * 80+\"\\n\")\n",
    "\t\t\tdir_file.close()\n",
    "\t\tprint('*' * 5 +\"抓取结束\"+'*' * 5)    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "if __name__ == '__main__':\n",
    "    #创建对象\n",
    "    geturl = getUrl()\n",
    "    #调用方法\n",
    "    geturl.run()\n",
    "#验证码部分没有搞定 并不能成功爬取"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "腾讯热点爬取"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "index , title , url\n",
      "1 , 造谣病毒来自武汉实验室的，原来是惯犯 , https://new.qq.com/omn/20200427/20200427A0BLNR00.html\n",
      "2 , 董卿老公、上海富商密春雷“秘史” , https://new.qq.com/omn/20200427/20200427A0CB2700.html\n",
      "3 , 一线 | 李国庆再谈“夺章”：印章我白天绑在裤腰带，晚上放被窝里 , https://new.qq.com/zt/template/?id=TEC2020042600521000\n",
      "4 , 浙江“70后”厅长跨省晋升副省长 , https://new.qq.com/omn/20200427/20200427A08JMI00.html\n",
      "5 , 久违了黄鹤楼！闭园98天后4月29日重开 实名网上购票每日4千张 , https://new.qq.com/zt/template/?id=SSH2020042600556500\n",
      "6 , 全国扫黑办：挂牌督办38起涉黑涉恶案件 , https://new.qq.com/omn/20200427/20200427A0BBTS00.html\n",
      "7 , 女子“割肝救子”才发现孩子被错抱28年 涉事医院正和家属协商赔偿 , https://new.qq.com/omn/20200427/20200427A088DC00.html\n",
      "8 , 少女与父子生三孩案二审开庭 受害人律师：建议对抚养权予以处理 , https://new.qq.com/omn/20200427/20200427A0506400.html\n",
      "9 , 韩国89岁前总统全斗焕出庭受审 家门口警察堵成人墙 , https://new.qq.com/omn/20200427/20200427A04L6I00.html\n",
      "10 , 寻找熟悉的武汉生活：超市老板从日接万单降到数百 未来想转型线上 , https://new.qq.com/omn/20200427/20200427V05K4900.html\n",
      "11 , 六部门：无犯罪记录证明等20项证明不应由社区出具 , https://new.qq.com/omn/20200427/20200427A066PB00.html\n",
      "12 , 疫情下的民办幼儿园：房租和人工会拖死大部分幼儿园 , https://new.qq.com/omn/20200426/20200426A0Q8F900.html\n",
      "13 , 上海市鼓励消费者用新能源汽车，年内增4万张中心城区非运营客车牌照 , https://new.qq.com/zt/template/?id=FIN2020032000209000\n",
      "14 , 李国庆抢当当公章现场视频曝光：“从容”将公章装进背包 , https://new.qq.com/omn/20200427/20200427V01DY900.html\n",
      "15 , 河北保定一家4口被害案嫌疑人落网，系被害一家对门的亲戚 , https://new.qq.com/omn/TWF20200/TWF2020042700007600.html\n",
      "16 , 武汉一长江大桥出现晃动，官方回应 , https://new.qq.com/omn/20200426/20200426A0O22700.html\n",
      "17 , 四川一家公司疫情期间售卖假口罩 被罚1400余万元 , https://new.qq.com/omn/20200427/20200427A00E0000.html\n",
      "18 , 河北广宗县村民家水龙头为何流出酸液？工业、生活用水管线不分 , https://new.qq.com/omn/20200427/20200427A02TN700.html\n",
      "19 , 中国已向美国提供24亿只口罩，空军向3国急送试剂盒 , https://new.qq.com/omn/20200426/20200426A0PR2B00.html\n",
      "20 , 湖南益阳镉大米详情待披露，当地企业曾多次涉大米镉超标案 , https://new.qq.com/omn/20200426/20200426A0PLML00.html\n",
      "21 , 全球疫情吃紧，新冠检测试剂盒为何很难走出国门 , https://new.qq.com/omn/20200426/20200426A0HWYG00.html\n",
      "22 , 河北邢台市13个村自来水现异常 17667名群众生活饮水受到影响 , https://new.qq.com/omn/20200426/20200426A0PGG800.html\n",
      "23 , 教师梁艳萍在社交平台发布不当言论 湖北大学成立调查组 , https://new.qq.com/omn/20200426/20200426A0Q1GM00.html\n",
      "24 , 面对面 | 父亲感染新冠肺炎去世后 我们捐献了他的遗体 , https://new.qq.com/omn/20200426/20200426V0Q4TT00.html\n",
      "25 , 缅甸武装发生大冲突：3枚炮弹落入中国境内，学校不幸被击中 , https://new.qq.com/omn/20200426/20200426V0O9OP00.html\n",
      "26 , 哈尔滨“1传80＋”，副市长陈远飞再被中央纪委通报 , https://new.qq.com/omn/20200426/20200426A0KWHQ00.html\n",
      "27 , 热点丨直击青岛小珠山起火点：火苗在峭壁上乱窜 消防员飞檐走壁追火 , https://new.qq.com/omn/20200426/20200426V0N5FG00.html\n",
      "28 , 北上与广深隔了座万亿城市：一线城市经济总量差距为何越来越大？ , https://new.qq.com/omn/20200426/20200426A0EPVI00.html\n",
      "29 , 想“割肝救子”发现不是血亲，“但我还是想拼了命救他” , https://new.qq.com/omn/20200426/20200426A0KXU900.html\n",
      "30 , 河南开封卫健委回应“错换人生28年”事件：会督促医院协商赔偿 , https://new.qq.com/omn/20200426/20200426A0MCT200.html\n",
      "31 , 探访被李国庆“夺权”后的当当总部：有员工表示“欢迎李哥回来” , https://new.qq.com/omn/20200426/20200426V0LZUB00.html\n",
      "32 , 市委书记、市长请了10位企业家一起吃饭，现场画面曝光 , https://new.qq.com/omn/20200426/20200426A0GYH700.html\n",
      "33 , 开门见墓！规划公园变墓园修豪华活人墓 为躲检查用绿布遮盖墓穴 , https://new.qq.com/omn/20200426/20200426V0EQJ100.html\n",
      "34 , 31省份最低工资调整出炉：上海2480元领跑 北京时薪最高 , https://new.qq.com/omn/20200426/20200426A0G0WS00.html\n",
      "35 , 媒体：“多国女子想嫁到中国”，鸡血含量高达100％ , https://new.qq.com/omn/20200426/20200426A0DVC700.html\n",
      "36 , 美国医生4次被拒检测后死亡 女儿心寒：她为医院工作了31年 , https://new.qq.com/omn/20200426/20200426V0NFXD00.html\n",
      "37 , 知名女网红制售假奢侈品被抓受审画面曝光 起底其背后上亿隐秘产业链 , https://new.qq.com/omn/20200426/20200426V0N0B700.html\n",
      "38 , 商务部：中国从未限制防疫物资出口，出口口罩价格合理是良心品质 , https://new.qq.com/omn/FIN20200/FIN2020042600554400.html\n",
      "39 , 非洲人在华遭虐待？法新社核查网络视频揭开真相 , https://new.qq.com/omn/20200426/20200426A0ALM200.html\n",
      "40 , 探访当当网总部：当当网报警称李国庆闯入抢走公章 , https://new.qq.com/omn/20200426/20200426V0JNY500.html\n",
      "41 , 河北广宗自来水灼伤村民 记者探访涉事企业：大门紧闭已停工 , https://new.qq.com/omn/20200426/20200426V0HHDQ00.html\n",
      "42 , 现场画面！武汉最后一批在院新冠肺炎患者出院 , https://new.qq.com/omn/20200426/20200426V0HGUW00.html\n",
      "43 , 现场直击 | 原油宝事件后续：中国银行总部“严阵以待” , https://new.qq.com/zt/template/?id=FIN2020042200316800\n",
      "44 , 湖北居民因疫情无法在签注有效期内赴港澳台？官方回应了 , https://new.qq.com/omn/20200426/20200426A0IFC300.html\n",
      "45 , 儿童独自在车内被车窗卡住去世 警方：事发时无人看管 , https://new.qq.com/omn/20200426/20200426V0HAKO00.html\n",
      "46 , 台北一间KTV失火已有54人送医，其中5人死亡2人生命垂危 , https://new.qq.com/omn/20200426/20200426A0HY0O00.html\n",
      "47 , 李国庆率4大汉赴当当夺回公章，宣布全面接管当当“罢免”俞渝 , https://new.qq.com/omn/20200426/20200426A0E6IP00.html\n",
      "48 , 对话“错换人生28年”事件4名当事人：卖血借钱先治病，再追责 , https://new.qq.com/omn/TWF20200/TWF2020042600245200.html\n",
      "49 , 甘肃女生遭猥亵坠亡案教师获刑两年 女生父亲：他出庭时还在抵赖 , https://new.qq.com/omn/20200426/20200426V0B80L00.html\n",
      "50 , 牛弹琴：美国海军要“造反”了！ , https://new.qq.com/omn/20200426/20200426A04E9K00.html\n",
      "51 , 回归烟火气的武汉：市民蹲街边过早 吃到热干面有久违的感觉 , https://new.qq.com/omn/20200426/20200426V00V8Y00.html\n",
      "52 , “胖妞”出国抗疫的三大看点 , https://new.qq.com/omn/20200426/20200426A0666H00.html\n",
      "53 , 国家跨省异地就医结算系统暂停服务 可延期办理联网结算 , https://new.qq.com/omn/20200426/20200426A076LK00.html\n",
      "54 , 安徽初中女生学校坠亡：日记自述患抑郁症，两舍友目睹其后仰坠楼  , https://new.qq.com/omn/20200426/20200426A053LS00.html\n",
      "55 , 哈尔滨新冠疫情传染链再延长：已致80多人感染 许多疑问仍待解 , https://new.qq.com/omn/TWF20200/TWF2020042600026900.html\n",
      "56 , 广西边境查获13名非法入境外国人，现场画面曝光 , https://new.qq.com/omn/20200425/20200425V0M94M00.html\n",
      "57 , 青岛小珠山山火6处火点已被扑灭 617名撤离居民返家 , https://new.qq.com/omn/20200426/20200426A00CND00.html\n",
      "58 , 湖南失踪女大学生遇害 同村嫌疑人被抓 案发当天部分监控缺失 , https://new.qq.com/omn/20200426/20200426A00CGT00.html\n",
      "59 , 长江流域抗生素污染调查：儿童孕妇尿液中检出多种抗生素 , https://new.qq.com/omn/20200425/20200425A07RED00.html\n",
      "60 , 河北广宗饮用水异常原因查明：3名嫌疑人被控制 企业法人投案自首 , https://new.qq.com/omn/20200425/20200425A0MGXN00.html\n",
      "61 , 公安部对13人发A级通缉令已有6人落网，22岁女逃犯东莞被抓 , https://new.qq.com/omn/20200425/20200425A0OHMS00.html\n",
      "62 , 商务部等加强非医用口罩出口监管：报关时须提交进出口双方共同声明 , https://new.qq.com/omn/20200426/20200426A00DYM00.html\n",
      "63 , 镉大米重现：“毒大米”为何屡禁不绝？ , https://new.qq.com/omn/20200425/20200425A0IYB100.html\n",
      "64 , 青岛小珠山两处山火复燃 地形陡峭难以靠近救援队无奈折返 , https://new.qq.com/omn/20200425/20200425V0NS7V00.html\n",
      "65 , 湖南省2天5人被查，省纪委监委：反腐没有“暂停键” , https://new.qq.com/omn/20200425/20200425A0H7CO00.html\n",
      "66 , 公积金要取消？多地减缓缴存！争议公积金存废：14.6万亿规模怎么替代 , https://new.qq.com/omn/20200425/20200425A0B4EQ00.html\n",
      "67 , “常阳患者”会传染吗？援鄂一线专家六问释疑 , https://new.qq.com/omn/20200425/20200425A0DOOF00.html\n",
      "68 , 80后海归女老板：三个月损失超九千万 亲自开车送快餐 , https://new.qq.com/omn/20200424/20200424V0HGZU00.html\n",
      "69 , 多地明确暑假时间，部分地区延期近一个月 , https://new.qq.com/omn/20200425/20200425A0LHFY00.html\n",
      "70 , 河北保定一家四口遇害：嫌疑人系住对门的亲戚，两家曾有矛盾 , https://new.qq.com/omn/20200425/20200425A0KRTE00.html\n",
      "71 , 海航流动性危机发酵：海航基础业绩大变脸，剩余地产资产归属将现终局 , https://new.qq.com/omn/20200425/20200425A0IVM000.html\n",
      "72 , 江西景德镇客车侧翻致6死事故画面曝光 客车避让轿车后失控 , https://new.qq.com/omn/20200424/20200424V0Q2K300.html\n",
      "73 , 美国共和党“积极攻击中国”备忘录曝光，华春莹发推反击 , https://new.qq.com/omn/20200425/20200425A0GRZ100.html\n",
      "74 , 专家：武汉“封城”让全球减少1200万-4200万感染者 , https://new.qq.com/omn/20200425/20200425A0LWXL00.html\n",
      "75 , 伊朗首射军星后，美伊在波斯湾“危险接近”会否升级？ , https://new.qq.com/omn/20200425/20200425A0EQQR00.html\n",
      "76 , 最新发现！鼻子或是新冠病毒感染的“毒库” , https://new.qq.com/omn/20200425/20200425A0A5CC00.html\n",
      "77 , 疫情中的日本黑帮：卖口罩成主要收入，“山口组”有人确诊，中药受追捧 , https://new.qq.com/omn/20200424/20200424A0SWME00.html\n",
      "78 , 台媒：美军驱逐舰通过台湾海峡后，反潜机又经巴士海峡进入南海 , https://new.qq.com/omn/20200425/20200425A0AUUP00.html\n",
      "79 , 世卫组织：无证据表明新冠肺炎康复者能避免二次感染 , https://new.qq.com/omn/20200425/20200425A0KM8100.html\n",
      "80 , 25省发布一季度GDP数据：湖北跌出万亿俱乐部，23省增速超全国 , https://new.qq.com/omn/20200425/20200425A0IKFA00.html\n",
      "81 , 河北保定发生重大刑案警方悬赏5万缉凶 村民：一家四人被杀 , https://new.qq.com/omn/20200425/20200425V05VKJ00.html\n",
      "82 , 兰州娱乐场所陆续复工：限流限时营业 一客一消杀 , https://new.qq.com/omn/20200425/20200425A0IE7S00.html\n",
      "83 , 加拿大从中国采购口罩“不达标”？中国驻加使馆回应 , https://new.qq.com/omn/20200425/20200425A0AV7U00.html\n",
      "84 , 云南旱情历史罕见：137条河道断流 201座水库干涸 , https://new.qq.com/omn/TWF20200/TWF2020042500352200.html\n",
      "85 , “五一”假期如何出行？各地景区恢复政策大汇总 , https://new.qq.com/omn/20200425/20200425A05Z3500.html\n",
      "86 , 疑因护士抱错致“错换人生28年” 涉事医院：若是医院的错绝不护短 , https://new.qq.com/omn/20200425/20200425A0EHWH00.html\n",
      "87 , 青岛小珠山山火已明显减弱：千余人彻夜扑救 已不见明火 , https://new.qq.com/omn/20200425/20200425V06UUA00.html\n",
      "88 , 有关后新冠时代的13个判断：世界将大不一样（下） , https://new.qq.com/omn/20200424/20200424A0N6WS00.html\n",
      "89 , 部分途经墨西哥转机中国公民被遣返回出发地，中使馆发紧急提醒 , https://new.qq.com/omn/20200425/20200425A05KWR00.html\n",
      "90 , 张文宏回应“早餐喝不喝粥”争议：有讨论就是好事 , https://new.qq.com/omn/KLS20200/KLS2020042500429000.html\n",
      "91 , “甘肃庆阳女生遭猥亵坠亡”当事教师获刑2年 禁止从事相关职业3年 , https://new.qq.com/omn/20200425/20200425A0EGU900.html\n",
      "92 , 全国高速公路道口恢复“落杆”状态，仍然免费通行 , https://new.qq.com/omn/20200424/20200424A0SXDK00.html\n",
      "93 , 被公安部通缉的“98年生女逃犯”已被刑拘：涉嫌参与传销非法拘禁 , https://new.qq.com/omn/20200424/20200424A0UHUR00.html\n",
      "94 , 滞留巴厘岛的中国人：航班多次取消，孕妇等到快生娃，仍不知归期 , https://new.qq.com/omn/20200425/20200425A07ZFW00.html\n",
      "95 , 谷雨｜燕郊固安的环京人：上下班5小时辗转70公里 只为生活好 , https://new.qq.com/omn/20200425/20200425A063VT00.html\n",
      "96 , 内蒙古：所有入境人员一律实行“14＋14＋2＋1”管控措施 , https://new.qq.com/omn/20200425/20200425A0309A00.html\n",
      "97 , 湖南益阳：立案调查涉云南重金属超标大米7家企业 , https://new.qq.com/omn/20200425/20200425A0496R00.html\n",
      "98 , 抗疫期间顶风公款聚餐 江苏响水公检法一把手齐被问责 , https://new.qq.com/omn/20200425/20200425A04IW800.html\n",
      "99 , 婴儿趴睡致死知情人曝惊人内幕：有话术洗脑压制母亲不能去帮孩子 , https://new.qq.com/omn/20200424/20200424V0SG5F00.html\n",
      "100 , 一线丨小鹏汽车向特斯拉发严正声明：过去一年一直被骚扰、霸凌 , https://new.qq.com/omn/20200425/20200425A06R4500.html\n",
      "101 , 较真丨宝宝趴着睡能预防呕吐、助消化？这个“育儿经”真的靠不住 , https://new.qq.com/omn/20200425/20200425A05DO600.html\n",
      "102 , 河北邢台多个村庄饮用水异常：发黄起沫村民被灼伤 鱼虾大片死亡 , https://new.qq.com/omn/20200424/20200424V0T56E00.html\n",
      "103 , 国家防办：松花江流域、海河流域、黄河流域中上游等可能发生较重汛情 , https://new.qq.com/omn/20200424/20200424A0U8IL00.html\n",
      "104 , “抗体血浆”竟成特效药！“换血”会成富人“续命爆款”吗？ , https://new.qq.com/omn/20200424/20200424A0SNOC00.html\n",
      "105 , 贵阳三月大女婴熟睡时被老鼠咬伤  事发时奶奶正在屋外洗衣服 , https://new.qq.com/omn/20200424/20200424V0KWTZ00.html\n",
      "106 , 河南河北两副省长先后被公诉：一个喝酒只喝茅台 一个搞迷信活动 , https://new.qq.com/omn/20200424/20200424A0RTYK00.html\n",
      "107 , 谷雨数据丨喊麦真的该被骂吗？分析100首麦词我们发现了这些 , https://new.qq.com/omn/20200424/20200424A0F7GE00.html\n",
      "108 , 公安部对13名涉黑恶逃犯发布A级通缉令 最小女逃犯生于1998年 , https://new.qq.com/omn/TWF20200/TWF2020042400906500.html\n",
      "109 , 董明珠透露格力电器近况：一季度少卖300亿元，为呵护员工不会裁员 , https://new.qq.com/omn/20200425/20200425A03RLC00.html\n"
     ]
    }
   ],
   "source": [
    "import time\n",
    "from  selenium import webdriver\n",
    "driver=webdriver.Chrome()\n",
    "driver.get(\"https://news.qq.com\")\n",
    "#了解ajax加载\n",
    "for i in range(1,100):\n",
    "    time.sleep(2)\n",
    "    #更改滚动条的位置\n",
    "    driver.execute_script(\"window.scrollTo(window.scrollX, %d);\"%(i*200))\n",
    "from bs4 import BeautifulSoup\n",
    "html=driver.page_source\n",
    "bsObj=BeautifulSoup(html,\"xml\")\n",
    "#定位标签\n",
    "jxtits=bsObj.find_all(\"div\",{\"class\":\"jx-tit\"})[0].find_next_sibling().find_all(\"li\")\n",
    "print(\"index\",\",\",\"title\",\",\",\"url\")\n",
    "for i,jxtit in enumerate(jxtits):\n",
    "#     print(jxtit)\n",
    "    \n",
    "    try:\n",
    "        text=jxtit.find_all(\"img\")[0][\"alt\"]\n",
    "    except:\n",
    "        text=jxtit.find_all(\"div\",{\"class\":\"lazyload-placeholder\"})[0].text\n",
    "    try:\n",
    "        url=jxtit.find_all(\"a\")[0][\"href\"]\n",
    "    except:\n",
    "        print(jxtit)\n",
    "    print(i+1,\",\",text,\",\",url) \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
